// ReadPot ACW
// Joe Pardue March 24, 2009
// based on Tom Igoe's example in the 
// Arduino Serial.print(data) documenation

#include "libACW001.h"

// variable to hold the analog input value
int analogValue = 0;

int main(void)
{
	init();		// Initialize the private stuff
	setup();	// Setup the public stuff

	for(;;)
		loop();	// Call loop() forever

	return 0;	// You never get here

}

void setup()
{
	// begin the serial communication
	//Serial.begin(9600);
	serialBegin(9600);

}

void loop()
{
	// read the analog input on pin 0
	analogValue = analogRead(0);

	// print prolog to value
	//Serial.print("ADC Reading: ");
	printf("ACW ADC Reading: ");

	// print as an ASCII-encoded decimal
	//Serial.print(analogValue, DEC);
	//Serial.printIn();	// print a newline
	printf("%d\n", analogValue);

	// delay 1 second before the next reading:
	delay(1000);
}


